export default ($axios) => (path) => {
  return {
    search: (params) => $axios.$get(`${path}`, { params }),
    page: (params) => $axios.$get(`${path}/page`, { params }),
    detail: (id) => $axios.$get(`${path}/${id}`),
    hot: () => $axios.$get(`${path}/hot`)
  }
}
